﻿<%@ Page Language="C#" AutoEventWireup="true" masterpagefile="~/Admin/Main.master"  title="日志管理" CodeFile="SysLog.aspx.cs" Inherits="Admin_SysLog" %>

<asp:Content ID="Content1" ContentPlaceHolderID="LeftMenu" Runat="Server">
    <div class="leftMenuTitle">
        安全设置
    </div>
    <ul class="leftMenu">
        <li><a href="ChangeMyInformation.aspx">我的资料</a></li>
        <li><a href="ManagerAdd.aspx">管理员管理</a></li>
        <li><a href="SysLog.aspx">系统日志</a></li>
    </ul>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MidContent" Runat="Server">
  <div id="mainMenu">
  	<ul>
		<li><a href="SysLog.aspx">日志列表</a></li></ul>
  </div>
   <div id="main">
   <asp:Label id="Msg" runat="server" Text="" CssClass="msg" Visible="False"></asp:Label>
    <asp:GridView ID="LogList" runat="server" AllowPaging="True" AutoGenerateColumns="False" OnPageIndexChanging="LogList_PageIndexChanging" DataKeyNames="LogId" PageSize="11" OnRowDeleting="LogList_RowDeleting" CellPadding="0" CssClass="gv" Width="100%" OnRowDataBound="LogList_RowDataBound">
        <Columns>
            <asp:BoundField DataField="LogId" FooterText="Id" HeaderText="Id" ReadOnly="True" />
            <asp:BoundField DataField="Info" HeaderText="信息" SortExpression="PenName" ReadOnly="True" />
            <asp:BoundField DataField="ManagerName" HeaderText="登陆名" SortExpression="ManagerName" ReadOnly="True" />
            <asp:BoundField DataField="Url" HeaderText="登陆地址" ReadOnly="True" />
            <asp:BoundField DataField="AddTime" HeaderText="登陆时间" ReadOnly="True" />
            <asp:BoundField DataField="AddIp" HeaderText="来路IP" ReadOnly="True" />
            <asp:TemplateField HeaderText="操作" ShowHeader="False">
                <EditItemTemplate>
                    &nbsp;
                </EditItemTemplate>
                <ItemStyle CssClass="gvCommandField" />
                <ItemTemplate>
                    &nbsp;<asp:Button ID="DelBt" runat="server" CausesValidation="False" CommandName="Delete" Text="删除" />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <RowStyle CssClass="gvRow" />
        <EditRowStyle CssClass="gvEditRow" />
        <PagerStyle CssClass="gvPage" />
        <HeaderStyle CssClass="gvHeader" />
        <AlternatingRowStyle CssClass="gvAlternatingRow" />
    </asp:GridView>
  </div>
  <script language="JavaScript" type="text/javascript" >
        topMenuThisPage(4);//当前位置顶部菜单标识
        leftMenuThisPage(1,3);//当前位置左侧菜单标识
        mainMenuThisPage(1);//当前选项卡标识
  </script>
</asp:Content>
